package org.example.ba03;

/**
 * 测试构造注入
 */
public class Student {

    public Student(){

    }

    public  Student(String name,String email,Integer age){
        this.Age=age;
        this.Email=email;
        this.Name=name;
    }

    public String Name;

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public void PrintName(){
        System.out.print(this.Name);
    }

    public  String Email;
    public  Integer Age;

    public String getEmail() {
        return Email;
    }

    public void setEmail(String email) {
        Email = email;
    }

    public Integer getAge() {
        return Age;
    }

    public void setAge(Integer age) {
        Age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "Name='" + Name + '\'' +
                ", Email='" + Email + '\'' +
                ", Age=" + Age +
                '}';
    }
}
